package cn.zymall.user.service.impl;

import cn.zymall.user.mapper.AdminMapper;
import cn.zymall.common.model.Admin;
import cn.zymall.user.service.AdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * (Admin)表服务实现类
 *
 * @author makejava
 * @since 2020-08-18 10:39:37
 */
@Service("adminService")
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {

	@Autowired
	AdminMapper adminMapper;

	/*
	 * @Author 欧泽昌
	 * @Description //查询全部管理员
	 * @Date 2020/8/25 15:59
	 * @Param []
	 * @return java.util.List<cn.zymall.common.model.Admin>
	 **/
	@Override
	public List<Admin> selectAll() {
		return adminMapper.selectAll();
	}

	/**
	 * @Author 欧泽昌
	 * @Description //批量修改
	 * @Date 2020/8/21 21:15
	 * @Param [admin]
	 * @return int
	 **/
	@Override
	public int batchUpdate(List<Admin> list) {
		return adminMapper.batchUpdate(list);
	}

	@Override
	public Admin adminSign(Admin admin) {
		return adminMapper.adminSign(admin);
	}


}
